package com.lingxu.base.system.dict.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lingxu.base.system.dict.entity.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface SysDictMapper extends BaseMapper<SysDict> {
    Integer findOnlyOneCode(String code);

    IPage<SysDict> findSysDictList(@Param("page") Page<SysDict> page,@Param("keyWord") String keyWord);

    List<SysDict> findSysDictList(@Param("keyWord") String keyWord);

    List<DictTreeVo> findSystemDictTree() throws Exception;

    List<DictTreeVo> findSystemDictTreeVo(@Param("id") String id,@Param("dictCode") String dictCode) throws Exception;


    List<DictVO> findSystemDictCache() throws Exception;
}
